{% extends "index.html" %}
<link rel="StyleSheet" href="media/css/table.css" type="text/css">
{% block ip_content %}

	<form action="/iptables/rule/logs/" method="post">


	<div id="container">
	<div id="kutubaslik"><strong>Günlük Girdileri Tablosu</strong></div>	
			<br/>
			<br/>
			<br/>	
	
	<div id="leftcolumn">
	
	{{form.kelime.label}}:{{form.kelime}}
	
			
			</div>

			<div id="rightcolumn">
	
	{{form.kriter}}<input type="submit" value="Uygula"/>
			
			</div>


		</div>
	


</form>
<br/>
<br/>
<br/>
	<div id="itsthetable">
		<table summary="Submitted table designs">
			<caption>Kurallar</caption>
			<thead>
				<tr>
					<th scope="col">Tarih</th>
					<th scope="col">Prefix</th>
					<th scope="col">KAygıt</th>

					<th scope="col">H-Aygıt</th>
					<th scope="col">K-IP</th>
					<th scope="col">H-IP</th>

					<th scope="col">Proto</th>
					<th scope="col">K-Port</th>
					<th scope="col">H-Port</th>
				</tr>
			</thead>	
			
			<tbody>
			{% if object_list %}
				{% for logs in object_list %}				
					<tr >
						<th scope="row">{{logs.log_date}}</th>
						<td>{{logs.parent_prefix.pref_name}}</td>

						<td>{{logs.in_dev}}</td>
						<td>{{logs.outDev}}</td>
						<td>{{logs.ip_src}}</td>
						<td>{{logs.ip_dst}}</td>
						
						<td>{{logs.proto}}</td>
						<td>{{logs.sport}}</td>
						<td>{{logs.dport}}</td>
					</tr>
				{% endfor %}
			{% endif %}
</tbody>
</table> 
	<div id="container">
		{% if has_previous %}
			<div id="leftcolumn"><a href="?page={{previous}}">Onceki</a></div>
		{% endif %}

		{% if has_next %}
		<div id="rightcolumn"><a href="?page={{next}}">Sonraki</a></div>
		{% endif %}

	</div >

{% endblock %}